from enum import Enum, unique, IntEnum


@unique
class UserStatusEnum(IntEnum):
    NORMAL = 0
    INACTIVE = 1
    BANNED = 2


@unique
class TeamIdentityEnum(IntEnum):
    """
    用户在团队中的身份
    因涉及到权限判定，数字应按权限大小排列
    """
    OWNER = 3
    ADMIN = 2
    MEMBER = 1


@unique
class EmailSendStatusEnum(IntEnum):
    FAIL = 0
    SUCCESS = 1


@unique
class ProjectStatusEnum(IntEnum):
    NORMAL = 0
    RECYCLE = 1
    DELETE = 2

@unique
class DocStatusEnum(IntEnum):
    NORMAL = 0
    RECYCLE = 1
    DELETE = 2

@unique
class GraphStatusEnum(IntEnum):
    NORMAL = 0
    RECYCLE = 1
    DELETE = 2

